




/*
*************************************************************************
*西瑞克斯研发管理系统
*版 本: 1.0   
*日 期：02/09/2012    
*作 者： 王浩 QQ：873987060   
*************************************************************************   
*/ 
package com.application.yfprojectapproval.service;
import java.util.List;
import com.manager.BaseService;
import com.manager.commons.page.PageBean;
import com.application.yfprojectapproval.entity.YfProjectApproval;
import com.application.yfprojectapproval.struts.form.YfProjectApprovalForm;
import com.application.yfprojectapproval.dao.YfProjectApprovalDAO;
 /**
 * 
 * Description:YfProjectApprovalService<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 王浩 QQ：873987060  <br />
 * 
 * History: <br />
 * 
 * 02/09/2012 
 * 
 */
public class YfProjectApprovalService extends BaseService
{
	private YfProjectApprovalDAO yfProjectApprovalDAO;

	public YfProjectApprovalDAO getYfProjectApprovalDAO() {
		return this.yfProjectApprovalDAO;
	}

	public void setYfProjectApprovalDAO(YfProjectApprovalDAO yfProjectApprovalDAO) {
		this.yfProjectApprovalDAO = yfProjectApprovalDAO;
	}
        

        public YfProjectApproval getYfProjectApproval(YfProjectApproval yfProjectApproval) {
		return (YfProjectApproval) this.getBaseDao().queryByPk(yfProjectApproval, yfProjectApproval.getId());
	}
	
	public Integer getAllCountYfProjectApproval(YfProjectApprovalForm yfProjectApprovalForm){
		return this.yfProjectApprovalDAO.getAllCountYfProjectApproval(yfProjectApprovalForm);
	}
	
	public List<YfProjectApproval> searchYfProjectApproval(YfProjectApprovalForm yfProjectApprovalForm, PageBean pageBean) throws Exception {
		List<YfProjectApproval> yfProjectApprovalList = (List) this.yfProjectApprovalDAO.searchYfProjectApproval(yfProjectApprovalForm, pageBean);
		return yfProjectApprovalList;
	}
        
        public void deleteYfProjectApprovals(YfProjectApprovalForm yfProjectApprovalForm){
	   this.yfProjectApprovalDAO.deleteYfProjectApprovals(yfProjectApprovalForm);	 
	}
}
